<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<include file="Common:cssjs" />
</head>
<body>
<include file="Management:nav" />
<style type="text/css">
	html{_overflow-y:scroll}
</style>
<div class="pad_10">
  <div class="table-list">
      <table width="100%" cellspacing="0">
        <thead>
          <tr>
            <th width="10%">序号</th>
            <th width="10%" align="left" >用户名</th>
            <th width="10%" align="left" >所属角色</th>
            <th width="10%"  align="left" >最后登录IP</th>
            <th width="10%"  align="left" >最后登录时间</th>
            <th width="15%"  align="left" >E-mail</th>
            <th width="20%">备注</th>
            <th width="15%" >管理操作</th>
          </tr>
        </thead>
        <tbody>
        <foreach name="Userlist" item="vo">
          <tr>
            <td width="10%" align="center">{$vo.id}</td>
            <td width="10%" >{$vo.username}</td>
            <td width="10%" >{$vo.role_name}</td>
            <td width="10%" >{$vo.last_login_ip}</td>
            <td width="10%"  >
            <if condition="$vo['last_login_time'] eq 0">
            该用户还没登陆过
            <else />
            {$vo.last_login_time|date="y-m-d H:i:s",###}
            </if>
            </td>
            <td width="15%">{$vo.email}</td>
            <td width="20%"  align="center">{$vo.remark}</td>
            <td width="15%"  align="center">
            <if condition="$User['username'] eq $vo['username']">
            <font color="#cccccc">修改</font> | 
            <font color="#cccccc">删除</font>
            <else />
            <a href="{:U("Management/edit",array("id"=>$vo[id]))}">修改</a> | 
            <a href="javascript:confirmurl('{:U('Management/delete',array('id'=>$vo['id']))}', '是否确定删除？')">删除</a>
            </if>
            </td>
          </tr>
         </foreach>
        </tbody>
      </table>
      <div id="pages">{$Page}</div>
  </div>
</div>
</body>
</html>